package com.ruoyi.recycle.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.recycle.domain.CommodityRepertory;
import com.ruoyi.recycle.domain.CommoditySizeConfig;
import com.ruoyi.recycle.domain.IntegralCommodity;
import com.ruoyi.recycle.dto.IntegralCommodityVO;

import java.util.List;

/**
 * 积分商品Service接口
 *
 * @author Wubk
 * @date 2022-05-22
 */
public interface IIntegralCommodityService extends IService<IntegralCommodity> {
    /**
     * 查询积分商品
     *
     * @param id 积分商品主键
     * @return 积分商品
     */
    public AjaxResult selectIntegralCommodityById(Long id);

    /**
     * 查询积分商品列表
     *
     * @param integralCommodity 积分商品
     * @return 积分商品集合
     */
    public List<IntegralCommodity> selectIntegralCommodityList(IntegralCommodity integralCommodity);

    /**
     * 新增积分商品
     *
     * @param integralCommodity 积分商品
     * @return 结果
     */
    public int insertIntegralCommodity(IntegralCommodityVO integralCommodity);

    /**
     * 修改积分商品
     *
     * @param integralCommodity 积分商品
     * @return 结果
     */
    public int updateIntegralCommodity(IntegralCommodityVO integralCommodity);

    /**
     * 批量删除积分商品
     *
     * @param ids 需要删除的积分商品主键集合
     * @return 结果
     */
    public int deleteIntegralCommodityByIds(Long[] ids);

    /**
     * 删除积分商品信息
     *
     * @param id 积分商品主键
     * @return 结果
     */
    public int deleteIntegralCommodityById(Long id);

    AjaxResult selectAllIntegralCommodity(Integer id);

    AjaxResult collect(Integer clientId, Integer collectId,Integer type);

    AjaxResult cancelCollect(Integer clientId, Integer collectId,Integer type);

    AjaxResult insertCommoditySizeConfig(CommoditySizeConfig commoditySizeConfig);

    AjaxResult deleteCommoditySizeConfig(CommoditySizeConfig commoditySizeConfig);

    AjaxResult selectCommoditySizeConfig(Integer commodityId);

    AjaxResult addCommodityRepertory(List<CommodityRepertory> commodityRepertoryList);

    AjaxResult getCommodityRepertory(CommodityRepertory commodityRepertory);


    AjaxResult collectCommodityPageQuery(Long clientId, Integer currentPage, Integer pageSize);
}
